package org.dromara.bykt.domain.bo;

import org.dromara.bykt.domain.BYKTExamInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 考试咨询业务对象 exam_info
 *
 * @author Hou
 * @date 2025-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BYKTExamInfo.class, reverseConvertGenerate = false)
public class BYKTExamInfoBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图片
     */
    private String image;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 归属IP （与geography_info中id 对应）
     */
    @NotNull(message = "归属IP （与geography_info中id 对应）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long affiliationIp;

    /**
     * 信息类型（1：考试大纲   2：历年分数线  3：考试政策  4：招生计划 ）
     */
    @NotBlank(message = "信息类型（1：考试大纲   2：历年分数线  3：考试政策  4：招生计划 ）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String informationType;

    private Date createTime;
}
